home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13601 < prev    next >
Encoding:
Text File  |  1996-08-05  |  671 b   |  24 lines

  1. Path: news.ner.bbnplanet.net!forest!ebromber
  2. From: ebromber@forest.drew.edu
  3. Newsgroups: comp.lang.c
  4. Subject: Question on pointers
  5. Message-ID: <1996Apr8.233330.139449@forest>
  6. Date: 8 Apr 96 23:33:30 EST
  7. Organization: Drew University
  8.  
  9. In a program there is an array of structs. One of the headers for a 
  10. function says void pop(stack *). My question is shouldn't there be a name 
  11. or identifier after the asterisk? My friend says that it is the address of 
  12. a stack in the array. If this is true, how could I access the thing 
  13. pointed to?
  14. Here are some lines which define a stack
  15.  
  16. typedef struct item item;
  17. struct item {
  18.     struct item *next;
  19.     char c;
  20.     }
  21. typedef item *stack;
  22.  
  23.  
  24.